package com.Khan.Service.impl;

import com.Khan.Mapper.FileMapper;
import com.Khan.Service.FileService;
import com.Khan.pojo.Efile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Khan Liu
 * @date 2022/2/14 17:30
 */
@Service
public class FileServiceImpl implements FileService {

    @Autowired
    private FileMapper fileMapper;

    @Override
    public int saveFile(Efile file) {
        return fileMapper.saveFile(file);
    }

    @Override
    public Efile getFileByUUID(String uuid) {
        return fileMapper.getFileByUUID(uuid);
    }
}
